package com.calm.editor.entity;

import javax.persistence.Cacheable;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

@Cacheable
@Entity
@Table(name = "XHTML_TEMPLATE")
public class Template {
	
	@EmbeddedId
	private TemplateKey id;
	
	@Column(name = "TEMPLATE", length = 1000000)
	private String template;
	
	public String getTemplate() {
		return template;
	}

	public void setTemplate(String template) {
		this.template = template;
	}

	public TemplateKey getId() {
		return id;
	}

	public void setId(TemplateKey id) {
		this.id = id;
	}
}
